package com.shuma.approval.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 操作记录表

 * </p>
 *
 * @author xsj
 * @since 2024-06-17
 */
@TableName("operator_log")
public class OperatorLog implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 操作记录id
     */
    @TableId(value = "operate_id")
    private Long operateId;

    /**
     * 商品唯一id
     */
    private Long commodityId;

    /**
     * 操作状态(1新增、2下线、3上线、4发起审批、5审批通过、6审批驳回)
     */
    private Integer operatorStatus;

    /**
     * 操作时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime operatorTime;

    /**
     * 备注
     */
    private String remark;

    /**
     * 操作者
     */
    private String owner;

    /**
     * 操作者id
     */
    private Long ownerId;

    public Long getOperateId() {
        return operateId;
    }

    public void setOperateId(Long operateId) {
        this.operateId = operateId;
    }
    public Long getCommodityId() {
        return commodityId;
    }

    public void setCommodityId(Long commodityId) {
        this.commodityId = commodityId;
    }
    public Integer getOperatorStatus() {
        return operatorStatus;
    }

    public void setOperatorStatus(Integer operatorStatus) {
        this.operatorStatus = operatorStatus;
    }
    public LocalDateTime getOperatorTime() {
        return operatorTime;
    }

    public void setOperatorTime(LocalDateTime operatorTime) {
        this.operatorTime = operatorTime;
    }
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
    public String getOwner() {
        return owner;
    }

    public void setOwner(String owner) {
        this.owner = owner;
    }
    public Long getOwnerId() {
        return ownerId;
    }

    public void setOwnerId(Long ownerId) {
        this.ownerId = ownerId;
    }

    @Override
    public String toString() {
        return "OperatorLog{" +
            "operateId=" + operateId +
            ", commodityId=" + commodityId +
            ", operatorStatus=" + operatorStatus +
            ", operatorTime=" + operatorTime +
            ", remark=" + remark +
            ", owner=" + owner +
            ", ownerId=" + ownerId +
        "}";
    }
}
